﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommunityToolkit.Mvvm.ComponentModel;
using SpCad;
using SPCAM.Views;

namespace SPCAM.Servers
{
    public   class Server:ObservableObject, IServer
    {
        public static readonly NLog.Logger Log  = NLog.LogManager.GetCurrentClassLogger();
        public static Server _Instance;
        public MainWindow MainWindow { get; set; }
        public ISpView spView { get => MainWindow.Docking.scad; }
        public MainWindowDocking DokingWindow { get=>MainWindow.Docking; }
        public RibbonHeader RibbonHeader { get => MainWindow._RibbonHeader; }

        public static Server Instance
        {
            get
            {
                if (_Instance == null)
                    _Instance = new Server();
                return _Instance;
            }
        }
          

        private bool _CamHeadView;
        /// <summary>
        /// 显示头部扩散
        /// </summary>
        public bool CamHeadView { get => _CamHeadView;  set => SetProperty(ref _CamHeadView, value); }


        private bool _IsCamTabActive=false;
        /// <summary>
        /// cam项目激活
        /// </summary>
        public bool IsCamTabActive { get => _IsCamTabActive; set => SetProperty(ref _IsCamTabActive, value); }

    }
}
